<?php
namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;

class User extends Model
{
    use SoftDelete;
    protected $createTime="reg_time";
    protected $updateTime="last_time";
    protected $autoWriteTimestamp = true;

    public function level()
    {
        return $this->hasOne(UserLevel::class,"id","level_id");
    }
}
